//
//  LSZCommunicationDataManager.m
//  PartyClassCloud
//
//  Created by 梁素珍 on 2018/11/29.
//  Copyright © 2018年 九酷. All rights reserved.
//

#import "LSZCommunicationDataManager.h"

@implementation LSZCommunicationDataManager
-(id)initWithCommunicationData:(NSArray *)array
{
    self = [super init];
    if (self) {
        self.arrayData = [[NSMutableArray alloc]init];
        NSMutableArray * arrayMut = [[NSMutableArray alloc]init];
        for (NSDictionary * dic in array) {
            LSZCommunicationDataMg * manager = [[LSZCommunicationDataMg alloc]init];
            manager.address = NullStringjudgment(NSStr(dic[@"address"]));
            manager.branchId = NullStringjudgment(NSStr(dic[@"branchId"]));
            manager.branchName = NullStringjudgment(NSStr(dic[@"branchName"]));
            manager.id_id = NullStringjudgment(NSStr(dic[@"id"]));
            manager.leaf = NullStringjudgment(NSStr(dic[@"leaf"]));
            manager.name = NullStringjudgment(NSStr(dic[@"name"]));
            manager.sortIndex = NullStringjudgment(NSStr(dic[@"sortIndex"]));
            manager.summary = NullStringjudgment(NSStr(dic[@"summary"]));
            [arrayMut addObject:manager];
        }
        self.arrayData = arrayMut;
    }
    return self;
}
@end

@implementation LSZCommunicationDataMg
@end
